//
//  EFengShareToolBar.m
//  WZEfengAndEtong
//
//  Created by wanzhao on 16/2/29.
//  Copyright © 2016年 wanzhao. All rights reserved.
//

#import "EFengShareToolBar.h"

@interface EFengShareToolBar ()

WeakProperty UIButton *zanButton;
WeakProperty UIButton *huifuButton;
WeakProperty UIButton *shanchuButton;

@end

@implementation EFengShareToolBar


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIButton *zan = [UIButton buttonWithType:UIButtonTypeCustom];
        zan.backgroundColor = BlueColor;
        [zan setImage:[UIImage imageNamed:@"aaaa"] forState:UIControlStateNormal];
        zan.titleLabel.font = Font14;
        [zan setTitleColor:BlackColor forState:UIControlStateNormal];
        [zan setTitle:@"赞" forState:UIControlStateNormal];
        [zan addTarget:self action:@selector(zanButtonClick) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:zan];
        self.zanButton = zan;
        
        
        UIButton *huifu = [UIButton buttonWithType:UIButtonTypeCustom];
        [huifu setImage:[UIImage imageNamed:@"aaaa"] forState:UIControlStateNormal];
        huifu.backgroundColor = RedColor;
        huifu.titleLabel.font = Font14;
        [huifu setTitleColor:BlackColor forState:UIControlStateNormal];
        [huifu setTitle:@"回复(123)" forState:UIControlStateNormal];
        [huifu addTarget:self action:@selector(huifuButtonClick) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:huifu];
        
        UIButton *shanchu = [UIButton buttonWithType:UIButtonTypeCustom];
        [shanchu setImage:[UIImage imageNamed:@"aaaa"] forState:UIControlStateNormal];
        shanchu.backgroundColor = RedColor;
        shanchu.titleLabel.font = Font14;
        [shanchu setTitleColor:BlackColor forState:UIControlStateNormal];
        [shanchu setTitle:@"回复(123)" forState:UIControlStateNormal];
        [shanchu addTarget:self action:@selector(shanchuButtonClick) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:shanchu];

        self.shanchuButton = shanchu;
        

    }
    return self;
}

- (void)shanchuButtonClick
{
//    if ([self.EFengShareToolBarDelegate respondsToSelector:@selector(eFengShareToolBarDidClickShanChuWithShare:)] && self.EFengShareToolBarDelegate != nil) {
//        [self.EFengShareToolBarDelegate eFengShareToolBarDidClickShanChuWithShare:self.share];
//    }
}

- (void)zanButtonClick
{
//    if ([self.EFengShareToolBarDelegate respondsToSelector:@selector(eFengShareToolBarDidClickShanChuWithShare:)] && self.EFengShareToolBarDelegate != nil) {
//        [self.EFengShareToolBarDelegate eFengShareToolBarDidClickShanChuWithShare:self.share];
//    }
//
}

- (void)huifuButtonClick
{
//    if ([self.EFengShareToolBarDelegate respondsToSelector:@selector(eFengShareToolBarDidClickShanChuWithShare:)] && self.EFengShareToolBarDelegate != nil) {
//        [self.EFengShareToolBarDelegate eFengShareToolBarDidClickShanChuWithShare:self.share];
//    }

}
- (void)setShare:(EFengShare *)share
{
    _share = share;
}

- (void)layoutSubviews
{
    [super layoutSubviews];

}
@end
